package com.app.command;

public class CommandFactory {
	
	
	public static Command getCommand(String comline) {// ?
		if (comline.equals("/Cre") || comline.equals("1")) {
			return new CreateBookCommand();
		}
		if (comline.equals("/Del") || comline.equals("2")) {
			return new DeleteBookCommand();
		}
		if (comline.equals("/FindID") || comline.equals("3")) {
			return new FindBookByID();
		}
		if (comline.equals("/FindT") || comline.equals("4")) {
			return new FindBookByTitle();
		}
		if (comline.equals("/Exit") || comline.equals("0")) {
			System.exit(0);

		}

		return null;

	}
}